Page({
  data: {
    scheduleDate: {
      week: "",
      year: "",
      month: "",
      day: ""
    },
    showPopup: false
  },
  onLoad: function(options){
    this.setData({
      ["scheduleDate.year"]: options.y,
      ["scheduleDate.month"]: options.m,
      ["scheduleDate.day"]: options.d,
      ["scheduleDate.week"]: options.w
    })
  },
  onReady: function(){
    this.newSchedule = this.selectComponent("#newSchedule")
  },
  toCreatePage: function(){
    wx.navigateTo({
      url: 'url',
    })
  },
  createSchedule: function(){
    this.newSchedule.showPopup()
  }
})